import applyUpdate from './utils/apply-update'
import store from './utils/store/index'
import setAllShare from './utils/set-all-share'
App({
  onLaunch(opation) {
    if( opation.query.scene){
      let scene = opation.query.scene.split("_");
      wx.setStorageSync("scene", scene[0] ||'')
    }else{
      wx.setStorageSync("scene",'')
    }
    applyUpdate()//自动更新小程序
    setAllShare()//全局分享
  },
  

  store,//状态管理
  globalData: {}//全局对象
})